<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>小组作业</title>
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<script src="js/jquery.min.js"></script>
	<script src="js/f/default.js"></script>
	<link rel="stylesheet" type="text/css" href="css/f/navs.css">
	<link rel="stylesheet" type="text/css" href="css/f/default.css">
	<link rel="stylesheet" type="text/css" href="css/f/assignment.css"/>
		
<style type="text/css">
.text-btn{
	margin-top: 14px;
	left:30%;
    width: 70%;
    height: 30px;
    position: relative;
}
.form-text{
	margin-right:30px;
	width:200px;
	height:30px;
	line-height:30px;
}
</style>

</head>

<body>
	<div class="all">
		<jsp:include page="/nav.jsp"></jsp:include>
        <div class="rightall float-left">
        	<div class="already">
	             <div class="already-title">
	        		<div class="left">小组作业</div>
	        	</div>
	        	<div>
	        		<form action="cadre/findByWork.do?pageNo=1" method="post"  class="text-btn">
	        			<input class="form-text" type="text" name="findByname" placeholder="请输入姓名">
	        			<input class="btn-style" style="width:80px" type="submit" value="查询">
	        		</form>
	        	</div>
        		<table style="text-align: center">
        			<tr class="tr-style-head">
        				<td>组员名</td>
        				<td>作业内容</td>
        				<td>提交时间</td>
        				<td>成绩</td>
        			</tr>
        			<c:forEach var="Homework" items="${Homework }">
        			<tr class="tr-style">
        				<td>${Homework.stuName }</td>
        				<td>${Homework.homeworkContent}</td>
        				<td>
        					<fmt:formatDate value="${Homework.createTime }"  type="date" pattern="yyyy-MM-dd hh:mm"/>
        				</td>
        				<td>${Homework.workLevel }</td>
        			</tr>
        			</c:forEach>
        		</table>
        		<c:if test="${pages > 1}">
	                <div class="previous">
			        <c:if test="${pageNo>1 }">
						<a href="cadre/queryStuSquadHomework.do?pageNo=${pageNo-1 }&homeWorkId=1"">上一页</a>
					</c:if>
						&nbsp;
				    	<c:forEach var="p" begin="1" end="${pages }" step="1">
				    		<c:if test="${pageNo==p }">
				    			<span style="font-size:18px;color:#446ee6;">&nbsp;${p}&nbsp;</span>
				    		</c:if>
				    		<c:if test="${pageNo!=p }">
				    			<a href="cadre/queryStuSquadHomework.do?pageNo=${p }&homeWorkId=1">${p }&nbsp;</a>
				    		</c:if>
				    		
				    	</c:forEach>
				    	&nbsp;
				    <c:if test="${pageNo<pages }">
				    	<a href="cadre/queryStuSquadHomework.do?pageNo=${pageNo+1 }&homeWorkId=1">下一页</a>
				    </c:if>
	                </div>
                </c:if>
                    <!-- <div class="float-right excel"><button name="" class="btn-style">导出文件</button></div>  -->
        	</div>
        </div>
    </div>
  </body>
</html>
